package com.dfec.book.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dfec.book.util.BasePage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * 图书类别实体类
 *
 * @author tangrg
 * @email 1446232546@qq.com
 * @date 2025-06-2025/6/19 09:35:57
 */
@ApiModel(description = "图书类别实体")
@TableName("book_category")
public class BookCategoryEntity extends BasePage {


    @ApiModelProperty(value = "类别ID（主键，自增）", example = "1")
    @TableId
    private Integer categoryId;

    @ApiModelProperty(value = "图书类别名称", example = "计算机科学", required = true)
    private String categoryName;

    public BookCategoryEntity() {
    }

    public BookCategoryEntity(Integer categoryId, String categoryName) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return "BookCategoryEntity{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                '}';
    }
}